using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._FeatureClass
{
    /// <summary>
    /// <para>Set Feature Class Split Model</para>
    /// <para>Defines the behavior of a split operation on a feature class.</para>
    /// <para>定义对要素类进行拆分操作的行为。</para>
    /// </summary>    
    [DisplayName("Set Feature Class Split Model")]
    public class SetFeatureClassSplitModel : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetFeatureClassSplitModel()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_feature_class">
        /// <para>Input Feature Class</para>
        /// <para>The feature class on which the split model will be set.</para>
        /// <para>将在其上设置分割模型的要素类。</para>
        /// </param>
        public SetFeatureClassSplitModel(object _in_feature_class)
        {
            this._in_feature_class = _in_feature_class;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Set Feature Class Split Model";

        public override string CallName => "management.SetFeatureClassSplitModel";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_feature_class, _split_model.GetGPValue(), _out_feature_class];

        /// <summary>
        /// <para>Input Feature Class</para>
        /// <para>The feature class on which the split model will be set.</para>
        /// <para>将在其上设置分割模型的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_class { get; set; }


        /// <summary>
        /// <para>Split Model</para>
        /// <para><xdoc>
        ///   <para>Specifies the split model to apply to the input feature class.</para>
        ///   <bulletList>
        ///     <bullet_item>Delete/Insert/Insert—The original feature will be deleted, and both parts of the split feature will be inserted as new features with two new rows in the table.</bullet_item><para/>
        ///     <bullet_item>Update/Insert—The original feature will be updated, becoming the largest feature, and the smaller feature will be inserted as a new row in the table. This is the default.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定要应用于输入要素类的分割模型。</para>
        ///   <bulletList>
        ///     <bullet_item>删除/插入/插入—将删除原始要素，并且分割要素的两个部分都将作为新要素插入，并在表中加入两个新行。</bullet_item><para/>
        ///     <bullet_item>更新/插入 - 原始要素将被更新，成为最大的要素，较小的要素将作为新行插入到表中。这是默认设置。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Split Model")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _split_model_value _split_model { get; set; } = _split_model_value._UPDATE_INSERT;

        public enum _split_model_value
        {
            /// <summary>
            /// <para>Delete/Insert/Insert</para>
            /// <para>Delete/Insert/Insert—The original feature will be deleted, and both parts of the split feature will be inserted as new features with two new rows in the table.</para>
            /// <para>删除/插入/插入—将删除原始要素，并且分割要素的两个部分都将作为新要素插入，并在表中加入两个新行。</para>
            /// </summary>
            [Description("Delete/Insert/Insert")]
            [GPEnumValue("DELETE_INSERT_INSERT")]
            _DELETE_INSERT_INSERT,

            /// <summary>
            /// <para>Update/Insert</para>
            /// <para>Update/Insert—The original feature will be updated, becoming the largest feature, and the smaller feature will be inserted as a new row in the table. This is the default.</para>
            /// <para>更新/插入 - 原始要素将被更新，成为最大的要素，较小的要素将作为新行插入到表中。这是默认设置。</para>
            /// </summary>
            [Description("Update/Insert")]
            [GPEnumValue("UPDATE_INSERT")]
            _UPDATE_INSERT,

        }

        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public SetFeatureClassSplitModel SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}